export default {
  singular: true,
  routes: [
    {
      path: '/',
      component: '../layout',
      routes: [
        {
          path: '/',
          component: './helloworld'
        },
        {
          path: '/puzzlecard',
          component: './puzzlecards'
        },
        {
          path: '/list',
          component: './list'
        },
        {
          path: '/dashboard',
          routes: [
            { path: '/dashboard/analysis', component: 'Dashboard/Analysis' },
            { path: '/dashboard/monitor', component: 'Dashboard/Monitor' },
            { path: '/dashboard/workplace', component: 'Dashboard/Workplace' }
          ]
        }
      ],
      // proxy: {
      //   '/dev': {
      //     target: 'http://localhost:8080',
      //     changeOrigin: true
      //   }
      // }
    }
  ],
  plugins: [
    [
      'umi-plugin-react',
      {
        antd: true,
        dva: true,
        locale: {
          enable: true
        }
      }
    ]
  ],
  theme: {
    '@primary-color': '#30b767'
  }
}
